var _o47;
var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2UIGuide = require("UIGuide");
var $2UIManager = require("UIManager");
var r = cc._decorator.ccclass;
var def_GuideMgr = _o47 = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
  }
  return babel_createClass(_ctor, null, [{
    key: "showGuide",
    value: function showGuide(e, t, n, i) {
      var r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : $2UIGuide.Shape.Box;
      var l = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
      var c = $2UIManager.UIManager.getInstance().getUI($2UIGuide.default);
      if (c) {
        c.init(e, t, n, i, r, l);
      } else {
        $2UIManager.UIManager.getInstance().showUI($2UIGuide.default, function () {
          _o47.showGuide(e, t, n, i, r, l);
        });
      }
    }
  }, {
    key: "showPYGuide",
    value: function showPYGuide(e) {
      var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
      var n = arguments.length > 2 ? arguments[2] : undefined;
      $2UIManager.UIManager.getInstance().getUI($2UIGuide.default);
      $2UIManager.UIManager.getInstance().showUI($2UIGuide.default, function () {
        _o47.showGuide(e, true, false, cc.Node.EventType.TOUCH_START, $2UIGuide.Shape.Polygon, t);
        n && n();
      });
    }
  }]);
}();
def_GuideMgr = _o47 = cc__decorate([r], def_GuideMgr);
exports.default = def_GuideMgr;